package com.lmx.repoDomain.repository;

import org.springframework.stereotype.Component;

import com.lmx.repoDomain.tmodel.Privilege;//hubiati
import com.lmx.repoDomain.tmodel.Role;//hubiati

import io.katharsis.queryParams.QueryParams;
import io.katharsis.repository.annotations.JsonApiAddRelations;
import io.katharsis.repository.annotations.JsonApiRelationshipRepository;
import io.katharsis.repository.annotations.JsonApiRemoveRelations;
import io.katharsis.repository.annotations.JsonApiSetRelation;

@JsonApiRelationshipRepository(source = Role.class, target = Privilege.class)
@Component
public class RoleToPrivilegesRepository extends BaseRelationRepository<Role, Privilege> {

    @Override
    @JsonApiSetRelation
    public void setRelation(final Role role, final Long taskId, final String fieldName) {

    }

    @Override
    @JsonApiAddRelations
    public void addRelations(final Role source, final Iterable<Long> targetIds, final String fieldName) {
    }

    @Override
    @JsonApiRemoveRelations
    public void removeRelations(final Role source, final Iterable<Long> targetIds, final String fieldName) {
    }


    @Override
    public void setRelations(final Role source, final Iterable<Long> targetIds, final String fieldName) {
        // TODO Auto-generated method stub

    }

    @Override
    public Privilege findOneTarget(final Long sourceId, final String fieldName, final QueryParams queryParams) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Iterable<Privilege> findManyTargets(final Long sourceId, final String fieldName, final QueryParams queryParams) {
        return null;
    }
}
